#include "mainwindow.h"
#include "./ui_mainwindow.h"
#include "NetAction.h"
#include "udpclient.h"
#include"scan.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    this->setWindowTitle("Trans");
    connect(ui->pushButton,&QPushButton::clicked,this,&MainWindow::ScanAction);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::ScanAction(){

    Scan *scan = new Scan();
    UDPClient uclient;
    uclient.sendScanMsg(scan);
    delete scan ;

}

